package com.hmy.gateway;

import com.hmy.common.platform.CcpInitService;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.cloud.openfeign.EnableFeignClients;

@EnableDiscoveryClient
@EnableZuulProxy
@SpringCloudApplication
@EnableFeignClients
public class Application
{


    public static void main(String[] args)
        throws Exception
    {
        if (args.length != 3)
        {
            throw new Exception("Start server is error");
        }

        //设置系统环境参数
        CcpInitService.getInstance().setSystemProperty(args);


        SpringApplication springApplication = new SpringApplication(Application.class);
        springApplication.run(args);

    }
}
